<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class AddColumsResultsTeamsTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::table('teams', function($table)
		{
		    $table->integer('ouro')->unsigned()->default(0);
		    $table->integer('abastecimentos')->unsigned()->default(0);
		    $table->integer('combustiveis')->unsigned()->default(0);
		    $table->integer('pneus')->unsigned()->default(0);
		    $table->integer('tendas')->unsigned()->default(0);
		    $table->integer('dinheiro')->unsigned()->default(0);
		});
	}

	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::table('teams', function($table)
		{
		    $table->dropColumn('ouro');
		    $table->dropColumn('abastecimentos');
		    $table->dropColumn('combustiveis');
		    $table->dropColumn('pneus');
		    $table->dropColumn('tendas');
		    $table->dropColumn('dinheiro');
		});
	}

}
